package com.example.demo.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author xieluoyin
 *  2018/8/18 23:06
 */
public class DateUtil {
    public static SimpleDateFormat getSimpleDateFormat() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    }
    public static String getDateString(Date date){return DateUtil.getSimpleDateFormat().format(date);}
}
